package com.specialized.orders.mapper;

import com.specialized.orders.common.domain.RealTime;

import java.util.List;

/**
 * 实时订单Mapper接口
 *
 * @author djh
 * @date 2024-07-23
 */
public interface RealTimeMapper {
    /**
     * 查询实时订单
     *
     * @param realtimeId 实时订单主键
     * @return 实时订单
     */
    public RealTime selectRealTimeByRealtimeId(Long realtimeId);

    /**
     * 查询实时订单列表
     *
     * @param realTime 实时订单
     * @return 实时订单集合
     */
    public List<RealTime> selectRealTimeList(RealTime realTime);

    /**
     * 新增实时订单
     *
     * @param realTime 实时订单
     * @return 结果
     */
    public int insertRealTime(RealTime realTime);

    /**
     * 修改实时订单
     *
     * @param realTime 实时订单
     * @return 结果
     */
    public int updateRealTime(RealTime realTime);

    /**
     * 删除实时订单
     *
     * @param realtimeId 实时订单主键
     * @return 结果
     */
    public int deleteRealTimeByRealtimeId(Long realtimeId);

    /**
     * 批量删除实时订单
     *
     * @param realtimeIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteRealTimeByRealtimeIds(Long[] realtimeIds);



    Integer addRealTimeOrders(RealTime realTime);


    List<RealTime> findRealTimeOrder(Long orderStatus);


    void updOrdersStatusDriver(Long realtimeId);


    void addRealTime(RealTime realTime);


    void updRealTimeDriverOrderStatus(Long orderStatus);


    RealTime selectRealTimeOrderCard(String orderCard);


    void updRealTimeDriverOrder(Long realtimeId);


    void updateOrdersStatusDriver(String orderCard);


    void addRealTimeOrdersss(RealTime realTime);




}
